<template>
  <div class="dialog-detail">
    <pub-detail-description
      :ndColumn="1"
      :data="pageData"
      :columns="basic"
    ></pub-detail-description>
    <div class="dialog-footer-btn">
      <el-button @click="emit('close')" type="primary">关闭</el-button>
    </div>
  </div>
</template>
  <script setup>
import { formatDictCode } from '@/utils/index'
import { ElMessage, ElMessageBox } from 'element-plus'
import { useUserStore } from '@/pinia/modules/user'
import dayjs from 'dayjs'
const emit = defineEmits(['close'])
const props = defineProps({
  id: {
    type: String,
    default: ''
  }
})
const pageData = ref({})

const basic = [
  { prop: 'orgName', label: '单位名称', span: 1 },
  { prop: 'organization', label: '组织机构', span: 1 },
  { prop: 'buildDate', label: '成立日期', span: 1 },
  { prop: 'contactPerson', label: '联系人', span: 1 },
  { prop: 'contactPhone', label: '联系电话', span: 1 },
  { prop: 'assetCard', label: '工会资产登记证号', span: 1 },
  { prop: 'receivePerson', label: '领证办理人', span: 1 },
  { prop: 'grantPerson', label: '发证办理人', span: 1 },
  { prop: 'registerPerson', label: '登记人', span: 1 },
  { prop: 'registerDate', label: '登记日期', span: 1 }
]


const loading = ref(false)

const getDetail = async () => {
  // let res = await getDetailById(props.id)
}


onMounted(() => {
 getDetail()
})
</script>
  <style lang="scss" scoped></style>
  